export function checkLogin() {
    let loginUrls = ["/me"];
    let path = location.pathname;
    let isLogin = sessionStorage.getItem('auth');
    if (loginUrls.includes(path) && !isLogin) {
        location.href = "/login"
    }
}
export default {
    checkLogin
}